package 设计模式.行为型.发布订阅;

/**
 * description:
 *
 * @author 颜真明
 * @date 2024/3/12  10:05
 */
public class TestPublishAndSubscribe {

    public static void main(String[] args) {
        Publish publish = new Publish();

        SubscribeA subscribeA = new SubscribeA(publish);
        SubscribeB subscribeB = new SubscribeB(publish);
        SubscribeC subscribeC = new SubscribeC(publish);

        publish.notice();

    }
}
